<%-- 
    Document   : Patients
    Created on : Mar 26, 2012, 10:35:25 AM
    Author     : William Cheng
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Patients</title>
        <LINK REL=StyleSheet HREF="./css/main.css" TYPE="text/css"/>
    </head>
    <body>
                <div class="filler">
            <div class="bg">
                <div class="main">
                    <div class="hdr">
                        <div class="logo">
                            <img src="./imgs/logo.png"/>
                        </div>

                        <div class="hdr_content_container">
                            <div class="acct_btns" style="margin-top : 10px;">
                                <div class="acct_btn">
                                    <a href="accountSettings.jsp">Account Settings</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="LoginServlet?action=logout">Log Out</a>
                                </div>
                            </div>

                            <div class="acct_btns" style="margin-top: 75px;">
                                <div class="acct_btn">
                                    <a href="doctorDashboard.jsp">Home</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="plans.jsp">Plans</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="patients.jsp">Patients</a>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- hdr -->
                    <div class="container">
                        <div class="left_nav">
                            <div class="plan_nav">
                                <div class="plan_nav_search">
                                    <form action="Friends?action=friendSearch" method="post">
                                        <div class="plan_nav_search_hdr">
                                            Search patients:
                                        </div>
                                        <input type="text" name="q"/>
                                        <input type="submit" value="Search!" name=""/>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="page_body">
                            <div class="friend_title">${userAccount.firstName} ${userAccount.lastName}'s friends</div>
                            
                            <c:forEach var="friend" items="${userFriends.friendList}">
                                <div class="friend">
                                    <a href="./Friends?action=viewProfile&friendId=${friend.friendId}">${friend.friendName}</a><br/>
                                </div>
                            </c:forEach>
                            
                        </div>
                    </div>
                    <!-- dashboard container -->
                </div>
                <!-- main -->
            </div>
            <!-- bg -->
        </div>
        <!-- filler -->
    </body>
</html>

